﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;

public partial class MyLy_MylyInformation : System.Web.UI.Page
{
    BLL.UserBean bean = new UserBean();
    protected void Page_Load(object sender, EventArgs e)
    {
        string mobile = "";
        if (Session["LoginUser"] == null)
        {
            Response.Redirect(WebUtility.getWebRootPath() + "/Login/Login.aspx");
        }
        else 
        {
            mobile = Session["LoginUser"].ToString();
            //1:个人，2：企业
            int type = 0;
            string attr = bean.getUserAtrrbuite(mobile);
            if (!string.IsNullOrEmpty(attr))
            {
                type = Convert.ToInt32(attr);
                if (type == 1)
                {
                    Response.Redirect("MylyInformationp.aspx?regNo=" + mobile);
                }
                else
                {
                    Response.Redirect("MylyInformationc.aspx?regNo=" + mobile);
                }
            }
        }

    }



}
